home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19950528-19950726 / 000301_news@columbia.edu_Tue Jul 11 04:54:36 1995.msg < prev    next >
Internet Message Format  |  1995-07-31  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA15160
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 11 Jul 1995 01:24:04 -0400
  3. Received: by apakabar.cc.columbia.edu id AA21884
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 11 Jul 1995 01:24:03 -0400
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!usc!math.ohio-state.edu!uwm.edu!vixen.cso.uiuc.edu!news.uoregon.edu!news.bc.net!rover.ucs.ualberta.ca!news.ucalgary.ca!acs3.acs.ucalgary.ca!dddau
  6. From: dddau@acs3.acs.ucalgary.ca (Doug Dau)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: 3.13 Expression Eval Fails In 3.14
  9. Date: 11 Jul 1995 04:54:36 GMT
  10. Organization: The University of Calgary
  11. Lines: 41
  12. Message-Id: <3tt06c$3do@ds2.acs.ucalgary.ca>
  13. Nntp-Posting-Host: dddau@acs3.acs.ucalgary.ca
  14. X-Newsreader: TIN [version 1.2 PL2]
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. The following MSK 3.13 macro which iterates through a list of
  18. phone numbers, dialing each one in turn until it either gets a
  19. connection or fails to connect to any of the numbers, is failing
  20. when I try to run it under the May 21/95 patch level 8 version of
  21. MSK 3.14.
  22.  
  23.   COM MACRO TO MANAGE DIALING A LIST OF PHONE NUMBERS.
  24.   def TRY set count \v(argc),if count,-
  25.   :NXT,clear both,hangup,assign _dialnum \%\v(count),dial,if succ end 0,if count go :NXT,-
  26.   def \%z f
  27.  
  28. where the macro would be invoked as
  29.  
  30.   try phoneno1 phoneno2 phoneno3 ... phoneno9
  31.  
  32. The problem seems to trace down to how the expression
  33.   
  34.   assign _dialnum \%\v(count)
  35.  
  36. is evaluated. Formerly it would evaluate to the phone number
  37. associated with the argument being pointed to by "count" (don't
  38. believe the syntax was quite kosher according to the manual but
  39. it worked).  Under 3.14 the best I can do is get the expression
  40. to evaluate to the symbolic arguments (\%9, \%8, etc) if I code
  41. the fragment as
  42.  
  43.   assign _dialnum \\\{37}\v(count)
  44.  
  45. so it looks like 3.13 rescans and reduces the expression until
  46. there is nothing left to substitute while 3.14 just scans the
  47. expression once and quits.
  48.  
  49. Can anyone tell me if the above expression is being evaluated
  50. properly for MSK 3.14, and if so, is there another way to rewrite
  51. the expression to produce the desired result?
  52. --
  53.  Doug Dau                                      Internet: dddau@acs.ucalgary.ca
  54.  University Computing Services                 Phone:    403-220-6217
  55.  University of Calgary                         Fax:      403-282-9199
  56.  
  57.